@extends("backend.layout.main")

@section("right_content")

    <div class="mainWrapBox">
        <div class="mainBox">
    <div class="index-cen">

        <h3 class="index-h3">基础设置</h3>
        <div class="index-cdl clearfix">


            <a href="/backend/department">
                <dl class="ml0 index-icon">
                    <dt>
                        <span></span>
                    </dt>
                    <dd>
                        <div class="index-div">
                            <h4>组织与员工管理</h4>
                            <p>创建并维护公司组织结构，邀请员工加入组织</p>
                        </div>
                    </dd>
                </dl>
            </a>


            <a href="/backend/role">
                <dl class="index-icon1">
                    <dt>
                        <span></span>
                    </dt>
                    <dd>
                        <div class="index-div">
                            <h4>角色组与权限设置</h4>

                            <p>定义角色分组，并管理各类角色所对应的功能及数据权限</p>
                        </div>
                    </dd>
                </dl>
            </a>


            <a href="/backend/template">
                <dl class="index-icon2">
                    <dt>
                        <span></span>
                    </dt>
                    <dd>
                        <div class="index-div">
                            <h4>模板</h4>

                            <p>设定公司共用的数据规则，包括定义工作日、假期、费用类型等</p>
                        </div>
                    </dd>
                </dl>
            </a>


            <a href="http://www.xcube.com.cn/company/view/auth.action?orgId=5">
                <dl class="index-icon3">
                    <dt>
                        <span></span>
                    </dt>
                    <dd>
                        <div class="index-div">
                            <h4>公司基本信息维护</h4>

                            <p>更新并维护公司Logo、联系人、业务领域等基本信息</p>
                        </div>
                    </dd>
                </dl>
            </a>


            <a href="http://www.xcube.com.cn/comset/reporthours.htm">
                <dl class="index-icon9">
                    <dt>
                        <span></span>
                    </dt>
                    <dd>
                        <div class="index-div">
                            <h4>日报与工时</h4>

                            <p>每日工作记录，并应用工时来衡量人力成本</p>
                        </div>
                    </dd>
                </dl>
            </a>


            <a href="http://www.xcube.com.cn/customer/list.action?orgId=5">
                <dl class="ml0 index-icon4">
                    <dt>
                        <span></span>
                    </dt>
                    <dd>
                        <div class="index-div">
                            <h4>客户</h4>

                            <p>管理客户及联系人信息，全方位呈现客户跟进情况</p>
                        </div>
                    </dd>
                </dl>
            </a>


            <a href="http://www.xcube.com.cn/wx/wx_access.htm">
                <dl class="index-icon11">
                    <dt>
                        <span></span>
                    </dt>
                    <dd>
                        <div class="index-div">
                            <h4>微信接入</h4>

                            <p>更新并维护公司Logo、联系人、业务领域等基本信息</p>
                        </div>
                    </dd>
                </dl>
            </a>


            <a href="http://www.xcube.com.cn/ding/ding_access.htm">
                <dl class="index-icon10">
                    <dt>
                        <span></span>
                    </dt>
                    <dd>
                        <div class="index-div">
                            <h4>钉钉接入</h4>

                            <p>更新并维护公司Logo、联系人、业务领域等基本信息</p>
                        </div>
                    </dd>
                </dl>
            </a>
        </div>
    </div>

    <div id="modulelist">
        <div class="index-cen" id="addedModule">
            <h3 class="index-h3">已添加的应用</h3>
            <div class="index-cdl clearfix">

                <dl class="index-icon6">
                    <dt>
                        <span></span>
                    <div class="index-dlr clearfix">
                        <span data-purchaseid="17" data-enname="PROJECT" data-added="0" class="index-lrs"></span>
                    </div>
                    </dt>
                    <dd>
                        <div class="index-div">
                            <a href="http://www.xcube.com.cn/project/set/index.htm">
                                <h4>项目</h4>
                                <p>管理项目进度与收支，推动基于过程的任务、文档协作</p>
                            </a>
                            <div class="index-ir clearfix">
                                <div class="index-sp">
                                    <div class="index-sps clearfix" data-purchaseid="17" data-wfflag="1">
                                        <img src="http://static.xcube.com.cn/images/index-icon1.png">
                                        <label for="onea">审批</label>
                                    </div>

                                </div>
                            </div>
                        </div>
                    </dd>
                </dl>




                <dl class="ml0 index-icon7">
                    <dt>
                        <span></span>
                    <div class="index-dlr clearfix">
                        <span data-purchaseid="18" data-enname="THREAD" data-added="0" class="index-lrs"></span>
                    </div>
                    </dt>
                    <dd>
                        <div class="index-div">
                            <a href="http://www.xcube.com.cn/thread/list.action?orgId=5">
                                <h4>线索</h4>
                                <p>管理线索基本信息及跟进过程</p>
                            </a>
                            <div class="index-ir clearfix">
                                <div class="index-sp">
                                    <div class="index-sps clearfix" data-purchaseid="18" data-wfflag="0">
                                        <img src="http://static.xcube.com.cn/images/index-icon2.png">
                                        <label for="onea">审批</label>
                                    </div>

                                </div>
                            </div>
                        </div>
                    </dd>
                </dl>




                <dl class="index-icon8">
                    <dt>
                        <span></span>
                    <div class="index-dlr clearfix">
                        <span data-purchaseid="19" data-enname="OPP" data-added="0" class="index-lrs"></span>
                    </div>
                    </dt>
                    <dd>
                        <div class="index-div">
                            <a href="http://www.xcube.com.cn/opportunity/list.action?orgId=5">
                                <h4>机会</h4>
                                <p>由线索转为机会，管理机会跟进过程及结果</p>
                            </a>
                            <div class="index-ir clearfix">
                                <div class="index-sp">
                                    <div class="index-sps clearfix" data-purchaseid="19" data-wfflag="1">
                                        <img src="http://static.xcube.com.cn/images/index-icon1.png">
                                        <label for="onea">审批</label>
                                    </div>

                                </div>
                            </div>
                        </div>
                    </dd>
                </dl>




                <dl class="index-icon5">
                    <dt>
                        <span></span>
                    <div class="index-dlr clearfix">
                        <span data-purchaseid="20" data-enname="CONTRACT" data-added="0" class="index-lrs"></span>
                    </div>
                    </dt>
                    <dd>
                        <div class="index-div">
                            <a href="http://www.xcube.com.cn/contract/5">
                                <h4>合同</h4>
                                <p>管理合同审批、归档、开票与回款</p>
                            </a>
                            <div class="index-ir clearfix">
                                <div class="index-sp">
                                    <div class="index-sps clearfix" data-purchaseid="20" data-wfflag="0">
                                        <img src="http://static.xcube.com.cn/images/index-icon2.png">
                                        <label for="onea">审批</label>
                                    </div>

                                </div>
                            </div>
                        </div>
                    </dd>
                </dl>

            </div>

        </div>
        <div class="index-cen" id="notAddMoudle">
            <h3 class="index-h3">未添加的应用</h3>
            <div class="index-cdl clearfix">
            </div>

        </div>
    </div>


    <a href="javascript:;" style="display: none;" data-toggle="modal" data-target="#createCompanyPanel" id="createCompanyPanelId" title="dome公司弹框"></a>
            </div>
        </div>

    <script>

        $(function () {
            /**
             * 添加移除应用
             */
            $(document).on("click",".index-dlr span",function () {
                var purchaseId=$(this).attr("data-purchaseId");
                var added=$(this).attr("data-added");
                var enName=$(this).attr("data-enname");
                $.ajax({
                    url:"updatemodule.htm",
                    type:"POST",
                    data:{purchaseId:purchaseId,added:added,ajaxType:1,enName:enName},
                    dataType:"text",
                    success:function(data){
                        /*queryNav()*/;
                        $("#modulelist").html(data);
                    }
                });
            });
            /**
             * 是否启用审批流程
             */
            $(document).on("click",".index-sps",function(){
                var purchaseId=$(this).attr("data-purchaseId");
                var wfFlag=$(this).attr("data-wfFlag");
                $.ajax({
                    url:"updatemodule.htm",
                    type:"POST",
                    data:{purchaseId:purchaseId,wfFlag:wfFlag,ajaxType:2},
                    dataType:"text",
                    success:function(data){
                        $("#modulelist").html(data);
                    }
                });
                return false;
            });

        });
    </script>



@endsection
